import 'package:flutter/material.dart';
import 'package:vehicle_management/pages/my_task_page/ServiceLocator.dart';
import 'package:vehicle_management/routes/routes.dart';
// void main() => runApp(MyApp());
void main()  {
// 注册服务打电话
setupLocator();
// 运行主界面
runApp(MyApp());
}

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: '车辆管理',
        theme: ThemeData(
          primarySwatch: Colors.red,
        ),
        initialRoute: '/',
        onGenerateRoute:onGenerateRoute
     );
  }
}
